  /**
   * Generate time : 2013-06-26 2:07:28
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cb.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCBLongteamPlan 
 * table comment : 中长期计划主表 
 */
public class ZMCBLongteamPlan extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private Long fdNo = new Long(0);	/* 编号*/
	private String fdSimulatorId = " ";		/* 模拟ID*/
	private String fdBeginYear = " ";		/* 开始年份*/
	private String fdBeginDate = " ";		/* 开始日期*/
	private String fdEndYear = " ";		/* 结束年份*/
	private String fdEndDate = " ";		/* 结束日期*/
	private String fdPlanName = " ";		/* 计划名称*/
	private String fdStatus = " ";		/* 状态*/
	private String fdPerson = " ";		/* 编制人*/
	private String fdDate = " ";		/* 编制日期*/
	private String fdRemarks = " ";		/* 备注*/
	private String fdPlanTime = " ";		/* 备注*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);

	eiColumn = new EiColumn("fdNo");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName("编号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSimulatorId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("模拟ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBeginYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("开始年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBeginDate");
	eiColumn.setFieldLength(14);	
	eiColumn.setDescName("开始日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEndYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("结束年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEndDate");
	eiColumn.setFieldLength(14);	
	eiColumn.setDescName("结束日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanName");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("计划名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPerson");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("编制人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDate");
	eiColumn.setFieldLength(14);	
	eiColumn.setDescName("编制日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemarks");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanTime");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("规划年限");
	eiMetadata.addMeta(eiColumn);

	}
	/**
	 * the constructor
	 */
	public ZMCBLongteamPlan() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdSimulatorId - 模拟ID
	 * @return the fdSimulatorId
	 */
	public String getFdSimulatorId() {
		return this.fdSimulatorId;
	}
	
	/**
	 * set the fdSimulatorId - 模拟ID
	 */
	public void setFdSimulatorId(String fdSimulatorId) {
		this.fdSimulatorId = fdSimulatorId;
	}
	
	/**
	 * get the fdNo - 编号
	 * @return the fdNo
	 */
	public Long getFdNo() {
		return this.fdNo;
	}
	
	/**
	 * set the fdNo - 编号
	 */
	public void setFdNo(Long fdNo) {
		this.fdNo = fdNo;
	}

	/**
	 * get the fdBeginYear - 开始年份
	 * @return the fdBeginYear
	 */
	public String getFdBeginYear() {
		return this.fdBeginYear;
	}
	
	/**
	 * set the fdBeginYear - 开始年份
	 */
	public void setFdBeginYear(String fdBeginYear) {
		this.fdBeginYear = fdBeginYear;
	}
	
	/**
	 * get the fdBeginDate - 开始日期
	 * @return the fdBeginDate
	 */
	public String getFdBeginDate() {
		return this.fdBeginDate;
	}
	
	/**
	 * set the fdBeginDate - 开始日期
	 */
	public void setFdBeginDate(String fdBeginDate) {
		this.fdBeginDate = fdBeginDate;
	}
	
	/**
	 * get the fdEndYear - 结束年份
	 * @return the fdEndYear
	 */
	public String getFdEndYear() {
		return this.fdEndYear;
	}
	
	/**
	 * set the fdEndYear - 结束年份
	 */
	public void setFdEndYear(String fdEndYear) {
		this.fdEndYear = fdEndYear;
	}
	
	/**
	 * get the fdEndDate - 结束日期
	 * @return the fdEndDate
	 */
	public String getFdEndDate() {
		return this.fdEndDate;
	}
	
	/**
	 * set the fdEndDate - 结束日期
	 */
	public void setFdEndDate(String fdEndDate) {
		this.fdEndDate = fdEndDate;
	}
	
	/**
	 * get the fdPlanName - 计划名称
	 * @return the fdPlanName
	 */
	public String getFdPlanName() {
		return this.fdPlanName;
	}
	
	/**
	 * set the fdPlanName - 计划名称
	 */
	public void setFdPlanName(String fdPlanName) {
		this.fdPlanName = fdPlanName;
	}
	
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	
	/**
	 * get the fdPerson - 编制人
	 * @return the fdPerson
	 */
	public String getFdPerson() {
		return this.fdPerson;
	}
	
	/**
	 * set the fdPerson - 编制人
	 */
	public void setFdPerson(String fdPerson) {
		this.fdPerson = fdPerson;
	}
	
	/**
	 * get the fdDate - 编制日期
	 * @return the fdDate
	 */
	public String getFdDate() {
		return this.fdDate;
	}
	
	/**
	 * set the fdDate - 编制日期
	 */
	public void setFdDate(String fdDate) {
		this.fdDate = fdDate;
	}
	
	/**
	 * get the fdRemarks - 备注
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}
	
	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}
	
	/**
	 * get the fdRemarks - 规划年限
	 * @return the fdRemarks
	 */
	public String getFdPlanTime() {
		return this.fdPlanTime;
	}
	
	/**
	 * set the fdRemarks - 规划年限
	 */
	public void setFdPlanTime(String fdPlanTime) {
		this.fdPlanTime = fdPlanTime;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdNo(NumberUtils.toLong(StringUtils.toString(map.get("fdNo")), fdNo));
		setFdSimulatorId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSimulatorId")), fdSimulatorId));
		setFdBeginYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBeginYear")), fdBeginYear));
		setFdBeginDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBeginDate")), fdBeginDate));
		setFdEndYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEndYear")), fdEndYear));
		setFdEndDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEndDate")), fdEndDate));
		setFdPlanName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanName")), fdPlanName));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPerson")), fdPerson));
		setFdDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDate")), fdDate));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
		setFdPlanTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanTime")), fdPlanTime));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
			map.put("fdNo",StringUtils.toString(fdNo, eiMetadata.getMeta("fdNo")));		
			map.put("fdSimulatorId",StringUtils.toString(fdSimulatorId, eiMetadata.getMeta("fdSimulatorId")));	
			map.put("fdBeginYear",StringUtils.toString(fdBeginYear, eiMetadata.getMeta("fdBeginYear")));	
			map.put("fdBeginDate",StringUtils.toString(fdBeginDate, eiMetadata.getMeta("fdBeginDate")));	
			map.put("fdEndYear",StringUtils.toString(fdEndYear, eiMetadata.getMeta("fdEndYear")));	
			map.put("fdEndDate",StringUtils.toString(fdEndDate, eiMetadata.getMeta("fdEndDate")));	
			map.put("fdPlanName",StringUtils.toString(fdPlanName, eiMetadata.getMeta("fdPlanName")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdPerson",StringUtils.toString(fdPerson, eiMetadata.getMeta("fdPerson")));	
			map.put("fdDate",StringUtils.toString(fdDate, eiMetadata.getMeta("fdDate")));	
			map.put("fdRemarks",StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));
			map.put("fdPlanTime",StringUtils.toString(fdPlanTime, eiMetadata.getMeta("fdPlanTime")));	
			
		return map;
	
	}
}